package cn.chl.feign;

import cn.chl.domain.Floor;
import cn.chl.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "floor-server")
@RequestMapping("/api/floor")
public interface FloorFeignClient {

    /** 添加数据 */
    @PostMapping("/add")
    JSONResult add(@RequestBody Floor floor);

    @GetMapping("/getOne/{id}")
    Floor getOne(@PathVariable("id")Integer id);
}
